<?php
$allItems = $this->allItems;
$currentPage = $this->currentPage;

if ($currentPage) {
    // check exists parent
    if ($currentPage['all_parent']) {
        $allParent = explode(',', $currentPage['all_parent']);
        if (isset($allParent[0])) {
            $allCategory = $this->allCategory;
            foreach($allParent as $parentID):
                $parent = $allCategory[$parentID];
                // check to ignore root
                if ($parent['left'] != 1) {
                ?>
                    <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >> 
                <?php
                }
            endforeach;
        }
        echo $currentPage['admin_title'];
    }
}

function callback($buffer) {
    return preg_replace('/\s+/', ' ', $buffer);
}
ob_start("callback");
$item = $this->item;

if ($item) {
?>
<div>
    <h3><?php echo $item->item_title;?></h3>
    <p><?php echo $item->item_short_description;?></p>
    <p><?php echo $item->item_description;?></p>
</div>
<?php
} // if has item
ob_end_flush();
?>